<template>
  <el-select
    :value="value"
    @input="handleInput"
  >
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    />
  </el-select>
</template>

<script>
export default {
  name: 'JiangSuSubjectScore',
  props: {
    value: {
      type: [String, Number],
      required: true
    }
  },
  data() {
    return {
      options: [
        {
          label: 'A+',
          value: 6
        },
        {
          label: 'A',
          value: 5
        },
        {
          label: 'B+',
          value: 4
        },
        {
          label: 'B',
          value: 3
        },
        {
          label: 'C',
          value: 2
        },
        {
          label: 'D',
          value: 1
        }
      ]
    }
  },
  methods: {
    handleInput(value) {
      this.$emit('input', value)
    }
  }
}
</script>

<style scoped>

</style>
